
// manualCalibView.h : interface of the CmanualCalibView class
//


#pragma once

#include "CalibData.h"
#include "GrabList.h"


class CmanualCalibView : public CScrollView
{
protected: // create from serialization only
	CmanualCalibView();
	DECLARE_DYNCREATE(CmanualCalibView)

// Attributes
public:
	CmanualCalibDoc* GetDocument() const;

// Operations
public:

// Overrides
public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

// Implementation
public:
	virtual ~CmanualCalibView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	afx_msg void OnFilePrintPreview();
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	DECLARE_MESSAGE_MAP()
public:
	virtual void OnInitialUpdate();
protected:
	// extract corner from given image
//	BOOL m_ExtractCornerMode;
//	CCalibData *m_pTemplateCalibData;
//	IplImage   *m_pTemplateImage;

//	CList<CString, CString&> m_fileNameList;

protected:
//	CCalibData *CreateCaliData(void);


public:

public:
	//afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//afx_msg void OnLoadExtractgridcorners();
	//afx_msg void OnLoadAddtionalimages();  //load an image and create calibration data, extract grid corners.
	//afx_msg void OnLoadImages();
	afx_msg void OnVideoConvert();
	afx_msg void OnVideoGrab();
protected:
public:
	// left and right image lists used to calibration camera
	CGrabList *m_grabList;
public:
	afx_msg void OnImagesDouble();
};

#ifndef _DEBUG  // debug version in manualCalibView.cpp
inline CmanualCalibDoc* CmanualCalibView::GetDocument() const
   { return reinterpret_cast<CmanualCalibDoc*>(m_pDocument); }
#endif

